<script type="text/javascript" src="${ctx}/res/js/confirm_dialog.js"></script>

<h3 class="mbl">Neo4j</h3>
<zzzzzz-ui:message key="msg_success_neo4j_clean" type="success" />
<a href="#clean_neo4j_db" class="btn style3 small" >Clean Neo4j DB</a>

<div data-dom-id="confirm-dialog" class="confirm-dialog" style="display: none;">
	<div data-dom-id="confirm-message" class="confirm-message"></div>
	<div class="confirm-actions" align="right">
		<input type="button" data-dom-id="confirm-cancel" class="btn style3 medium" value="Cancel" /><input type="button" data-dom-id="confirm-ok" class="btn style1 medium mls" value="Ok" />
	</div>
</div>

<script type="text/javascript">

jq(document).ready(function() {
	
	jq('a[href$="#clean_neo4j_db"]').click(function(e) {
		e.preventDefault();
		jq.confirm({"message" : "Are you sure you wanna Clean Neo4j Database?"}, function(result) {
			if(result === true) {
				window.location.href = "${ctx}/clean_neo4j_db";
			}
		});
	});

});

</script>
